<?php

/**
 * 弹幕
 *
 * Created by PhpStorm.
 * User: evan
 * Date: 2016/11/12
 * Time: 下午6:04
 */
class Barrage extends MY_Api_Controller
{
    public function apply()
    {
        $uid     = $this->uid;
        $ds_id   = (int)$this->input->get_post('ds_id');
        $content = trim($this->input->get_post('content'));


        $this->load->service('direct_seeding/service_direct_seeding_barrage');
        $data = $this->service_direct_seeding_barrage->apply($uid, $ds_id, $content);


        $this->json_output($data['data'], $data['status']);
    }
}